package com.deparse.testapp.groupedgridview;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ListView;

/**
 * Created by hsy on 2016/3/17.
 */
public class GroupedGridView extends ListView {
    private GroupedGridViewAdapter adapter;

    public GroupedGridView(Context context) {
        super(context);
        init(context);
    }

    public GroupedGridView(Context context, AttributeSet attrs) {
        super(context, attrs);
        init(context);
    }

    public GroupedGridView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        init(context);
    }

    private void init(Context context) {

    }

    public void setAdapter(GroupedGridViewAdapter adapter) {
        this.adapter = adapter;
        super.setAdapter(adapter);
    }

    @Override
    public GroupedGridViewAdapter getAdapter() {
        return adapter;
    }
}
